#ifndef _S_ST7735_H_
#define _S_ST7735_H_

typedef struct  
{										    
	unsigned short width;			//LCD ¿í¶È
	unsigned short height;			//LCD ¸ß¶È
	unsigned short id;				  //LCD ID
	unsigned char  dir;			  //ºáÆÁ»¹ÊÇÊúÆÁ¿ØÖÆ£º0£¬ÊúÆÁ£»1£¬ºáÆÁ¡£	
	unsigned short	 wramcmd;		//¿ªÊ¼Ð´gramÖ¸Áî
	unsigned short  setxcmd;		//ÉèÖÃx×ø±êÖ¸Áî
	unsigned short  setycmd;		//ÉèÖÃy×ø±êÖ¸Áî	 
	unsigned char xoffset;    
  	unsigned char yoffset;
}_lcd_dev; 	

#define LCD_W 128
#define LCD_H 128

extern signed char s_st7735_init(void);
extern void s_st7735_write_16bit_data(unsigned short data);
extern void s_st7735_set_window(unsigned short xStar, unsigned short yStar,unsigned short xEnd,unsigned short yEnd);
extern void s_st7735_set_direction(unsigned char direction);
extern void s_st7735_fill_window(unsigned short xStar, unsigned short yStar,unsigned short xEnd,unsigned short yEnd, unsigned short color);
#endif
